package xyz.xtt.exchange.service;

import com.baomidou.mybatisplus.extension.service.IService;

import xyz.xtt.exchange.entity.Test;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2024-12-04
 */
public interface ITestService extends IService<Test> {
	/**
	 * @param id
	 * @return
	 */
	Test selectForUpdate(Long id);

	/**
	 * @param id
	 * @param name
	 * @return
	 */
	boolean updateTarget(Long id, String name);

	/**
	 * 加锁更新
	 * 
	 * @param id
	 * @param name
	 * @return
	 */
	boolean lockUpdate(Long id, String name);
}
